package cn.yunhe.service.impl;

import cn.yunhe.entity.User;
import cn.yunhe.mapper.UserMapper;
import cn.yunhe.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2019-06-23
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User findByNamePass(String name) {
        return userMapper.findByNamePass(name);
    }

    @Override
    public User findById(Integer id) {
        return userMapper.findById(id);
    }
}
